$(function(){
	var infoId=queryString('detailId');
	
});
//正则取链接传来的数据
function queryString(key)
{
    var regex_str = "^.+\\?.*?\\b"+ key +"=(.*?)(?:(?=&)|$|#)";
    var regex = new RegExp(regex_str,"i");
    var url = window.location.toString();
    if(regex.test(url)) return RegExp.$1;
    return undefined;
}

function savaInfoCom(){
	$("#infoComModal").modal('hide');
	var infoComMes={};
	infoComMes.serchQu=$("input[name=serchQuality]:checked").val();
	infoComMes.perform=$("input[name=performance]:checked").val();
	infoComMes.suggest=$(".suggest").val();
	
	alert(JSON.stringify(infoComMes));
	
	/*
	 * 
	 * 7-27
	 * 
	 * */
}
function infoComModal(){
	var infoComMes={};
	infoComMes.serchQu=$("input[name=serchQuality]:checked").val();
	infoComMes.perform=$("input[name=performance]:checked").val();
	infoComMes.suggest=$(".suggest").val();
	if(infoComMes.serchQu==null||infoComMes.perform==null||infoComMes.suggest==""){
		$("#errorModal").modal('show');
	}else{
		$("#infoComModal").modal('show');
	}
	
	
}
